package ua.cs.stu.ics.dbf.readers;

import ua.cs.stu.ics.dao.dbf.StudentDAO;
import ua.cs.stu.ics.dbf.domain.StudentDomain;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 13.02.11
 * Time: 15:00
 * To change this template use File | Settings | File Templates.
 */
public class StudentReader extends DBFAbstractReader<StudentDomain>{

    private StudentDAO dao;

    @Override
    public void add(StudentDomain d) {
        dao.add(d);
    }

    @Override
    protected StudentDomain createDomain() {
        return new StudentDomain();
    }

    public StudentDAO getDao() {
        return dao;
    }

    public void setDao(StudentDAO dao) {
        this.dao = dao;
    }
}
